<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>if 运算符</title>
</head>
<body>
    <h1>if判断</h1>
<!--    并且 and &&  或者 or || -->
    <div th:object="${user}">
        <div th:if="*{age<=18}">少年</div>
        <div th:if="*{age<=28 and age>18} ">青年</div>
        <div th:if="*{age<=38 && age>28}">中年</div>


    </div>

</body>
</html>